package org.particlethink.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.particlethink.context.Context;
import org.particlethink.model.Category;
import org.particlethink.model.MasterPlanCategory;
import org.particlethink.model.Material;

import java.util.List;

public interface CategoryMapper  {
    List<Category> selectByIds(String token, @Param("list") List<String> ids);
    List<Category> selectByParentId(String token,@Param("parentId") String parentId);
    List<Category> selectParents(String token);
    Category selectById(String token,String id);

    List<Category> all(String token);
    List<Category> findByName(String token,@Param("name") String name);

}
